package com.example.student_systeam.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("student")
public class Student {

    @TableId(type= IdType.AUTO)//主键映射
    private Integer id;

    @TableField(value = "age")
    private Integer age;

    @TableField(value = "name")
    private String name;

    @TableField(value = "address")
    private String address;


}
